import axios from '@/libs/request/axios'
import QS from 'qs';


//获取撤销信息
export const getRevokeHandleList = (params) => {
    return axios.request({
        url: '/contractBasic/revokeHandle/getRevokeHandleList',
        method: 'post',
        data: params,
    })
}//获取撤销信息
export const getManageRevokeHandle = (caseNo) => {
    return axios.request({
        url: `/contractManage/revokeHandle/getManageRevokeHandle`,
        data: QS.stringify({caseNo: caseNo}),
        method: 'post',
        headers: {'content-type': 'application/x-www-form-urlencoded'},
    })
}
//流程发起
export const revokedStartProcess = (params) => {
    return axios.request({
        url: '/contractManage/revokeHandle/revokedStartProcess',
        method: 'post',
        data: params,
    })
}
//流程提交
export const revokeSubmitProcess = (params) => {
    return axios.request({
        url: '/contractManage/revokeHandle/revokeSubmitProcess',
        method: 'post',
        data: params,
    })
}
//查询
export const getManageRevokeHandleList = (params) => {
    return axios.request({
        url: '/contractManage/revokeHandle/getManageRevokeHandleList',
        method: 'post',
        data: params,
    })
}

